﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RequestReport.aspx.cs" Inherits="KorleBu.RequestReport" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Request Report - <%= description %></title>
    <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body class="printer">
    <form id="form1" runat="server">
        <asp:Panel runat="server" ID="pnlPrinter" Width="700px">
            <asp:Panel runat="server" ID="pnlContent" Width="100%" CssClass="printDiv">
                <table id="CreateRequest" class="printTable">
                    <tr>
                        <td class="blackLabel" style="border-width: thin; border-style: solid; border-color: Black;">
                            <strong>Request ID:</strong>
                            <asp:Label ID="lblViewRequestID" runat="server"></asp:Label>
                        </td>
                        <td class="blackLabel" style="border-width: thin; border-style: solid; border-color: Black;">
                            <strong>Request Date:</strong>
                            <asp:Label ID="lblViewDate" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="blackLabel" colspan="2" style="border-width: thin; border-style: solid; border-color: Black;">
                            <strong>Request Description:</strong>
                            <asp:Label ID="lblViewDescription" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvViewRequestItems" runat="server" AutoGenerateColumns="False" Width="100%">
                    <RowStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                    <Columns>
                        <asp:BoundField DataField="SatelliteStoreRequestID" HeaderText="ID" Visible="False" />
                        <asp:BoundField DataField="ItemID" HeaderText="No." />
                        <asp:BoundField DataField="ItemName" HeaderText="Name" />
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Label ID="lblStatusName" Text='<%# Bind("StatusName") %>' runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="QtyRequested" HeaderText="Requested" />
                        <asp:BoundField DataField="Allocated" HeaderText="Amount Approved" />
                        <asp:BoundField DataField="Received" HeaderText="Amount Received" ReadOnly="True" SortExpression="Received" />
                    </Columns>
                </asp:GridView>

                <br />
                <br />

                <input class="hideOnPrint" type="button" value="Print" onclick="window.print(); return false;" />

                <asp:Label CssClass="hideOnPrint" runat="server" ID="lblMasterError" />
            </asp:Panel>
        </asp:Panel>
    </form>
</body>
</html>
